package com.example.controller.pc;

import com.example.service.pc.ProductprocessresourceService;
import com.example.service.pc.WorkresourceService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-06-06
 */
@RestController
@Api(tags = "工单排产资源列表")
@RequestMapping("/api/workresource")
public class WorkresourceController {

    @Autowired
    private WorkresourceService service;
    @Autowired
    private ProductprocessresourceService productprocessresourceService;

//    @ApiOperation("按工单工序日期查询")
//    @PostMapping("list")
//    public List<Productprocessresource> list(@RequestBody WorkResourceDto dto) {
//        List<Workresource> list = service.list(new LambdaQueryWrapper<Workresource>()
//                .eq(Workresource::getWorkSingle, dto.getWorkSingle())
//                .eq(Workresource::getWorkNo, dto.getWorkNo())
//                .eq(Workresource::getDate, dto.getDate())
//                .eq(Workresource::getProcessNo, dto.getProcessNo())
//                .eq(Workresource::getProcessId, dto.getProcessId()));
//        List<Productprocessresource> res = new ArrayList<>();
////        for(Workresource t : list) {
////            Integer resourceGroupId = t.getResourceGroupId();
////            res.add(productprocessresourceService.getOne(new LambdaQueryWrapper<Productprocessresource>()
////                    .eq(Productprocessresource::get)))
////        }
//        return res;
//    }


}
